{% extends "base.html" %}

{% block content %}
    <div class="pageHeader">
        <form onsubmit="return navTabSearch(this);" action="{{full_path}}" method="post">
            <div class="searchBar">
                <table class="searchContent">
                    <tbody><tr>

                        <td>
                            起始日期：<input type="text" class="date textInput readonly" name="dt1" value="{{dt1|date:'Y-m-d'}}" readonly="true">
                        </td>
                        <td>
                            终止日期：<input type="text" class="date textInput readonly" name="dt2" value="{{dt2|date:'Y-m-d'}}"  readonly="true">
                        </td>
                    </tr>
                    </tbody></table>
                <div class="subBar">
                    <ul>
                        <li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
                    </ul>
                </div>
            </div>
        </form>
    </div>
    <div class="panelBar">
        <ul class="toolBar">
            <li class="line">line</li>
            <li class=""><a class="add" href="/admin/holiday/create" target="navTab" title="添加节假日"  rel='holiday_form'><span>添加</span></a></li>
            <li class="line">line</li>
        </ul>
    </div>
    <div class="pageContent">
    <table class="list" width="100%">
            <thead>
            <tr>
                <th width="77">ID</th>
                <th width="177">开始时间</th>
                <th width="177">结束时间</th>
                <th width="177">描述</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
        {%for holiday in list.object_list%}
        <tr >
            <td>{{holiday.id}}</td>
            <td>{{holiday.start_date|date:"Y-m-d"}}</td>
            <td>{{holiday.end_date|date:"Y-m-d"}}</td>
            <td>{{holiday.memo}}</td>
            <td>
                <a href="/admin/holiday/delete/{{holiday.id}}" target="ajaxTodo" rel="list_holiday_page" title="确定要删除吗?">删除</a>
            </td>
        </tr>
        {%endfor%}
        </tbody></table>
        </div>
        <div class="panelBar">
  <div class="pagination" targettype="navTab" totalcount="{{list.count}}" numperpage="10" pagenumshown="10" currentpage="{{list.number}}"></div>
  </div>


{% endblock %}